package com.tj.admin.auth.server.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.tj.admin.auth.server.dao.AdminDao;
import com.tj.admin.auth.server.entity.AdminEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: anonymous
 * Date: 2020-08-11
 * Time: 10:34:14.249
 */

@Repository
public class AdminDaoImpl extends AbstractBaseMapper<AdminEntity> implements AdminDao {

    @Override
    public AdminEntity selectOneByAccount(String account) {

        Map<String, Object> params = new HashMap<>();
        params.put("account", account);
        return getSqlSession().selectOne(this.getStatement("selectOneByAccount"), params);
    }
}